package cn.edu.scau.cmi.linhuanrui.hibernate.domain;

import java.util.HashSet;
import java.util.Set;

public class Student implements java.io.Serializable {


	// Fields

	private Long id;
	private Teacher teacher;
	private String name;

	// Constructors

	/** default constructor */
	public Student() {
	}

	/** minimal constructor */
	public Student(Long id) {
		this.id = id;
	}

	/** full constructor */
	public Student(Long id, String name,Teacher teacher ) {
		this.id = id;
		this.teacher = teacher;
		this.name = name;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Teacher getTeacher() {
		return this.teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
